package wox.lonice.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import wox.lonice.dto.Result;
import wox.lonice.service.leguan.LeguanHotService;

@Controller
public class HotController {

	@Autowired
	private LeguanHotService leguanHotService;
	
	@GetMapping("/hot/list")
	@ResponseBody
	public Result list(){
		return new Result(true, leguanHotService.getHot());
	}
}
